package com.leadership.entity.idm;

import java.util.HashMap;
import java.util.Map;

public class WsUser {
	private WsAttribute[] attributes;
	
	/**
	 * 
	 */
	public WsUser() {
    }
	
	/**
	 * 
	 * @return
	 */
	public Map<String, String> getAttrs() {
	    Map<String, String> attrs = new HashMap<String, String>();
	    for(WsAttribute attribute : attributes) {
	        attrs.put(attribute.getName(), attribute.getValue());
	    }
	    return attrs;
	}

	/**
	 * 
	 * @return
	 */
	public WsAttribute[] getAttributes() {
		return attributes;
	}

	/**
	 * 
	 * @param attributes
	 */
	public void setAttributes(WsAttribute[] attributes) {
		this.attributes = attributes;
	}
}
